<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ssh2.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ref.ssh2.html">SSH2 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ssh2.html">SSH2</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ssh2.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.ssh2-fingerprint-md5">
    <strong><code>SSH2_FINGERPRINT_MD5</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-fingerprint.html" class="function">ssh2_fingerprint()</a></span> requesting hostkey
     fingerprint as an MD5 hash.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-fingerprint-sha1">
    <strong><code>SSH2_FINGERPRINT_SHA1</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-fingerprint.html" class="function">ssh2_fingerprint()</a></span> requesting hostkey
     fingerprint as an SHA1 hash.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-fingerprint-hex">
    <strong><code>SSH2_FINGERPRINT_HEX</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-fingerprint.html" class="function">ssh2_fingerprint()</a></span> requesting hostkey
     fingerprint as a string of hexits.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-fingerprint-raw">
    <strong><code>SSH2_FINGERPRINT_RAW</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-fingerprint.html" class="function">ssh2_fingerprint()</a></span> requesting hostkey
     fingerprint as a raw string of 8-bit characters.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-term-unit-chars">
    <strong><code>SSH2_TERM_UNIT_CHARS</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-shell.html" class="function">ssh2_shell()</a></span> specifying that
     <code class="parameter">width</code> and <code class="parameter">height</code>
     are provided as character sizes.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-term-unit-pixels">
    <strong><code>SSH2_TERM_UNIT_PIXELS</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-shell.html" class="function">ssh2_shell()</a></span> specifying that
     <code class="parameter">width</code> and <code class="parameter">height</code>
     are provided in pixel units.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-default-term-width">
    <strong><code>SSH2_DEFAULT_TERM_WIDTH</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Default terminal width requested by <span class="function"><a href="function.ssh2-shell.html" class="function">ssh2_shell()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-default-term-height">
    <strong><code>SSH2_DEFAULT_TERM_HEIGHT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Default terminal height requested by <span class="function"><a href="function.ssh2-shell.html" class="function">ssh2_shell()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-default-term-unit">
    <strong><code>SSH2_DEFAULT_TERM_UNIT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Default terminal units requested by <span class="function"><a href="function.ssh2-shell.html" class="function">ssh2_shell()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-stream-stdio">
    <strong><code>SSH2_STREAM_STDIO</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-fetch-stream.html" class="function">ssh2_fetch_stream()</a></span> requesting STDIO subchannel.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-stream-stderr">
    <strong><code>SSH2_STREAM_STDERR</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Flag to <span class="function"><a href="function.ssh2-fetch-stream.html" class="function">ssh2_fetch_stream()</a></span> requesting STDERR subchannel.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-default-terminal">
    <strong><code>SSH2_DEFAULT_TERMINAL</code></strong>
     (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     Default terminal type (e.g. vt102, ansi, xterm, vanilla) requested
     by <span class="function"><a href="function.ssh2-shell.html" class="function">ssh2_shell()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-pollin">
    <strong><code>SSH2_POLLIN</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-pollext">
    <strong><code>SSH2_POLLEXT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-pollout">
    <strong><code>SSH2_POLLOUT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-pollerr">
    <strong><code>SSH2_POLLERR</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-pollhub">
    <strong><code>SSH2_POLLHUP</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-pollnval">
    <strong><code>SSH2_POLLNVAL</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-poll-session-closed">
    <strong><code>SSH2_POLL_SESSION_CLOSED</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-poll-channel-closed">
    <strong><code>SSH2_POLL_CHANNEL_CLOSED</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.ssh2-poll-listener-closed">
    <strong><code>SSH2_POLL_LISTENER_CLOSED</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
 </dl>

</div>
</div></div></body></html>